import React from 'react'
import '../../css/game.css'
const Square = (props) => {
  const {isWinnerSquare,onClick,value} =props
  return (
    <button className={isWinnerSquare ? 'red-square' : "square"}
      onClick={onClick}
    >
      {value}
    </button>
  );
}


export default Square